using System;

namespace WineCellar.Web.Security
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public class SecuredOperationAttribute : Attribute
    {
        private readonly string name;

        public SecuredOperationAttribute(string name)
        {
            this.name = name;
        }

        public string Name
        {
            get { return name; }
        }
    }
}